
var directiveModule = angular.module("directiveModule",[]);


directiveModule.directive("headerDirective",function(){
    return {
        restrict: 'AE',
        replace: true,
        template: [
            '<div class="header-content">',
            '<ul><li ng-click="">首页</li><li data-page="">模块介绍</li><li>案例</li><li>总结</li></ul>',
            '</div>'
        ].join(""),
        link : function($scope,element,attr){
            element.on("click",'li',function(){
                alert($scope.search);
            });
        }
    }
});
